package com.sakura.mall.coupon.homeSubject.service;

import com.sakura.mall.common.response.Page;
import com.sakura.mall.coupon.homeSubject.domain.entity.HomeSubjectEntity;
import com.sakura.mall.coupon.homeSubject.domain.request.AddHomeSubjectRequest;
import com.sakura.mall.coupon.homeSubject.domain.request.UpdateHomeSubjectRequest;
import com.sakura.mall.coupon.homeSubject.domain.request.HomeSubjectPageRequest;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sakura.mall.coupon.homeSubject.domain.vo.HomeSubjectVo;

/**
 * 首页专题表【jd首页下面很多专题，每个专题链接新的页面，展示专题商品信息】 service
 *
 * @author sakura
 */
public interface HomeSubjectService extends IService<HomeSubjectEntity> {
    

    /**
     * 分页查询
     *
     * @param request 请求
     * @return ret
     */
    Page<HomeSubjectVo> queryPage(HomeSubjectPageRequest request);

    /**
    * 注册用户
    *
    * @param request 请求
    */
    void add(AddHomeSubjectRequest request);
    

    /**
     * 更新用户
     *
     * @param id      id
     * @param request 更新
     */
    void updateById(Long id, UpdateHomeSubjectRequest request);
}
